<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>传书</title>
    <link href="css/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/aui.css"/>
    <link rel="stylesheet" href="css/shop.css">
    <link rel="stylesheet" href="css/alert.css">
    <script src="js/jquery-1.8.2.min.js"></script>
    <script src="js/mui.min.js"></script>
    <script>
        autoload=function(){
            var data={};
            data.user_id=user_id;
            data.userpwd=userpwd;
            if(user_id==""){
                return;
            }
            $.ajax({
                type: "POST",
                //url: "http://test/jsonp.php",
                data: data,
                url: "http://xjh.taoleyizhan.com/wap/index.php?ctl=mainpage&show_prog=1",
                dataType: "json",
                success: function (json) {
                    console.log(json);
                    page_data=json;
                    var noticeList="";

                    for(var i=0;i<page_data.newest_lottery_list.length;i++){
                        noticeList+='<li class="ellipsis"><img src="images/jiangpin.png" alt="">恭喜'+page_data.newest_lottery_list[i].user_name+'获得'+page_data.newest_lottery_list[i].name+' </li>';
                    }
                    $("#lunbo1").html(noticeList);
                    $("#page_title").text(page_data.page_title);
                    $("#user_tx").attr("src",hostUrl+ page_data.user_logo);
                    $("#user_name").html(page_data.user_name);
                    $("#user_id").html(user_id);
                    $("#user_id").html("ID:"+page_data.id+"");
                    $("#jifen").html(page_data.user_money_int);
                    $("#jiushui").html(page_data.user_score);


                    InitChat();
                },
                error:function(json){
                    console.log(json);
                }
            });
        }
    </script>
    <script src="js/init.js"></script>
    <style>
        @media screen and (max-width:320px){
            .shop_con{height:51vh;}
        }
        @media screen and (min-width:376px) and (max-width:414px){
            .shop_con{height:61vh;}
        }

    </style>
</head>
<body>
    <header class="mui-bar mui-bar-nav ">
        <a href="index.html" class="mui-icon-undo mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title" id="page_title">{$data.page_title}</h1>
    </header>
    <footer class="mui-bar mui-bar-footer mui-text-center flex" style="background:#fff;height:50px;">
        <div class="f1"><a href="maiquan.html"><img src="images/foot_buy.png" alt="" height="100%"></a></div>
        <div class="f1"><a href="shang.html"><img src="images/foot_shang.png" alt="" height="100%"></a></div>
        <div class="f1"><a href="index.html"><img src="images/foot_home.png" alt="" height="100%"></a></div>
        <div class="f1 re"><a href="chat.html"><img src="images/foot_my.png" alt="" height="100%"></a></div>
    </footer>

    <div class="mui-content">
        <div class="user re aui-mar-t-10 f12" style="height:50px;line-height:1.6;">
            <div class="re" style="width:55%;">
                <div class="user_bg ab" style="left:-10%;"></div>
                <div class="ab" style="z-index:2;">
                    <img id="user_tx" class="user_tx aui-mar-l-5" style="margin-top:-5px;width:50px;height:50px;" src="image/avatar.png" alt="">
                    <img class="ab" style="right:0;bottom:5px;" src="image/sex1.png" alt="" width="12">
                </div>
                <div class="ab aui-pad-t-5 aui-col-9 hidden" style="padding-left:70px;">
                    <div id="user_name" class="nowrap">小思设计2017小思</div>
                    <div id="user_id" class="nowrap" style="font-size:10px;">ID:123456</div>
                </div>
            </div>
            <div class="user_jf ab" style="width:45%;">
                <div class="user_bg ab" style="right:-10%;height:40px;"></div>
                <div class="index_buy ab f10"><a href="maiquan.html" class="aui-color-black">购 券</a></div>
                <div class="ab aui-col-6 nowrap" style="padding:10px 0 0 20px">
                    <img class="vmid aui-mar-r-5" src="images/zuan.png" alt="" width="14"><span id="jifen"></span>
                </div>
            </div>
        </div>
        <!--user信息-->

        <div class="aui-pad-10">
            <div class="nav_sm flex mui-text-center f12">
                <div class="f1"><a href="uc_setting.html" class="aui-color-black"><img class="block aui-col-6 auto" src="images/index_set.png" alt="" width="40">设置</a></div>
                <div class="f1"><a href="backpack.html" class="aui-color-black"><img class="block aui-col-6 auto" src="images/index_pack.png" alt="" width="40">背包</a></div>
                <div class="f1"></div>
                <div class="f1"></div>
                <div class="f1"></div>
                <div class="f1"></div>
                <div class="f1"></div>
            </div>
            <div class="flex aui-pad-10 f14 aui-border-radius" style="background:#fee630;box-shadow:3px 3px 3px #dab91e;">
                <div class="f1"><img class="vmid border-r-1 aui-pad-r-10" src="images/jiebao.png" alt="" height="30"></div>
                <div class="f5 border-r-1 hidden">
                    <div id="lunbo" style="width:95%;height:30px;overflow: hidden;color:#d80000;float:left;">
                        <a class="block aui-color-red" href="zhongjiang.html">
                            <ul id="lunbo1">
                                <li class="ellipsis"><img src="images/jiangpin.png" alt="">恭喜司马懿 在独闯江湖游戏中斩获冠军，获得一部iPhone7plus。</li>
                                <li class="ellipsis"><img src="images/jiangpin.png" alt="">恭喜司马懿 在独闯江湖游戏中斩获冠军，获得一部iPhone7plus。</li>
                                <li class="ellipsis"><img src="images/jiangpin.png" alt="">恭喜司马懿 在独闯江湖游戏中斩获冠军，获得一部iPhone7plus。</li>
                            </ul>
                            <ul id="lunbo2"></ul></a>
                    </div>
                </div>
                <div class="f1 mui-text-right f12" style="line-height:30px;">更多</div>
            </div>
            <!--江湖捷报-->
            <!--<div class="aui-mar-t-10"><img class="aui-col-10" src="images/page_baozang.png" alt=""></div>-->

            <script>
                var data={};
                data.user_id=user_id;
                data.userpwd=userpwd;
                $.ajax({
                    type: "POST",
                    //url: "http://test/jsonp.php",
                    data: data,
                    url: "http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_msg&show_prog=1",
                    dataType: "json",
                    success: function (json) {
                        console.log(json)
                        page_data=json
                        var list="";
                        if(page_data.list){
                            for(var i=0;i<page_data.list.length;i++){
                                list+='<li class="flex aui-border-b-gray aui-pad-10"> <div class="f3 hidden mui-text-left re"> <img class="friends fl aui-mar-r-10" src="'+hostUrl+page_data.list[i].user_logo+'" alt="" width="40"> <img class="ab" style="left:32px;top:24px;" src="image/sex1.png" alt="" width="12"> <div class="fl" style="width:calc(100% - 50px)"><div class="ellipsis">'+page_data.list[i].user_name+'</div><div class="f10">'+page_data.list[i].new_time+'</div></div> </div> <div class="f1 f10 aui-color-gray">和TA一起玩 </div> </li>'
                            }
                        }else{
                            list="暂无好友"
                        }
                        var list1="";
                        if(page_data.plist){
                            for(i=0;i<page_data.plist;i++){
                                list1+='<li class="flex aui-border-b-gray aui-pad-10"> <div class="f3 hidden mui-text-left re"> <img class="friends fl aui-mar-r-10" src="'+hostUrl+page_data.list[i].user_logo+'" alt="" width="40"> <img class="ab" style="left:32px;top:24px;" src="image/sex1.png" alt="" width="12"> <div class="fl" style="width:calc(100% - 50px)"><div class="ellipsis">'+page_data.list[i].user_name+'</div><div class="f10">'+page_data.list[i].new_time+'</div></div> </div> <div class="f1 f10 aui-color-gray">和TA一起玩 <div class="aui-color-black queding1" onclick="agreefriend('+page_data.plist[i].id+','+i+')">确定</div></div> </li>'
                            }
                        }
                        $(".recent_frd").html(list);
                        InitChat();
                    },
                    error:function(json){
                        console.log(json);
                    }
                });
                // 最近联系

                $.ajax({
                    type: "POST",
                    //url: "http://test/jsonp.php",
                    data: data,
                    url: "http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_msg&act=all",
                    dataType: "json",
                    success: function (json) {
                        console.log(json)
                        page_data=json
                        var list2="";
                        if(page_data.list){
                            for(i=0;i<page_data.list.length;i++){
                                list2+='<li class="flex aui-border-b-gray aui-pad-10"> <div class="f3 hidden mui-text-left re"> <img class="friends fl aui-mar-r-10" src="'+hostUrl+page_data.list[i].user_logo+'" alt="" width="40"> <img class="ab" style="left:32px;top:24px;" src="image/sex1.png" alt="" width="12"> <div class="fl aui-mar-t-10 ellipsis"  style="width:calc(100% - 50px)">'+page_data.list[i].user_name+'</div> </div> <div class="f1 f10 aui-color-gray">和TA一起玩</div> </li>'
                            }
                        }else{
                            list2="暂无好友"
                        }
                        $(".all_frd").html(list2);
                        InitChat();
                    },
                    error:function(json){
                        console.log(json);
                    }
                });
                // 全部好友

                function agreefriend(id,i) {
                    var data={};
                    data.user_id=user_id;
                    data.userpwd=userpwd;
                    data.id=id;
                    console.log(data)
                    $.ajax({
                        type:'post',
                        url:'http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_msg&act=agree_friend',
                        data:data,
                        dataType: "json",
                        success:function (json) {
                            console.log(json);
                            $(".queding1").eq(i).hide()

                        },
                        error:function () {
                            console.log(json)
                        }
                    })
                }

                //地址列表
                function agreefriend  () {
                    var data={};
                    data.user_id=user_id;
                    data.userpwd=userpwd;
                    sendData.flage=0;
                }

                console.log(data)
                $.ajax({
                    type:'post',
                    url:'http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_address&act=index',
                    data:data,
                    dataType: "json",
                    success:function (json) {
                        console.log(json);
                        page_data=json;
                        $(".mui-title").html(page_data.page_title)
                        var html='';
                        for ( var i=0;i<page_data.consignee_list.length;i++){
                         html+='<li class="aui-border-b-gray aui-pad-5"><div class="line-height-2">'+ page_data.consignee_list[i].consignee+'<span class="fr">'+page_data.consignee_list[i].mobile+'</span></div><div><span class="aui-color-red">[默认地址]</span>'+page_data.consignee_list[i].address+'</div><div class="bianji mui-text-right none"><span class="edit_btn"  onclick="bianji('+page_data.consignee_list[i].id+')">编辑</span> <span class="aui-color-red aui-pad-l-10" onclick="del('+page_data.consignee_list[i].id+','+user_id+')">删除</span></div><li/>'

                        }
                       $(".dizhi").html(html);
                        InitChat();
                    },
                    error:function () {

                    }
                })



            </script>

            <div class="aui-col-10 mui-text-center fix" style="left:0;bottom:50px;">
                <ul class="shop_nav select ab mui-text-center aui-col-10 flex">
                    <li class="action">我的</li>
                    <li class="">最近联系</li>
                    <li class="">全部好友</li>
                    <li class="">收货地址</li>
                </ul>
                <div class="shop_con back_scroll_bg f14 h58">
                    <ul class="chat_box list_box">
                        <li><a href="set_revise.html">
                            <img class="aui-col-8 block auto" src="images/my_center.png" alt="">
                            <div>我的信息</div></a>
                        </li>
                        <li><a href="invite.html">
                            <img class="aui-col-8 block auto" src="images/my_share.png" alt="">
                            <div>邀请记录</div></a>
                        </li>
                        <li><a href="huojiangjilu.html">
                            <img class="aui-col-8 block auto" src="images/my_zhongjiang.png" alt="">
                            <div>获奖记录</div></a>
                        </li>
                        <li class="fuli_btn">
                            <img class="aui-col-8 block auto" src="images/my_fuli.png" alt="">
                            <div>福利中心</div>
                        </li>
                        <li>
                            <img class=" aui-col-8 block auto" src="images/my_renzheng.png" alt="">
                            <div>我要认证</div>
                        </li>
                        <li class="chat_add">
                            <img class=" aui-col-8 block auto" src="images/my_add.png" alt="">
                            <div>添加好友</div>
                        </li>
                        <li class="chat_kefu">
                            <img class="aui-col-8 block auto" src="images/my_kefu.png" alt="">
                            <div>客服中心</div>
                        </li>

                    </ul>
                    <!--我的-->

                    <ul class="recent_frd chat_friend none" style="height:100%;overflow-y:auto;">

                    </ul>
                    <!--最近联系-->

                    <ul class="all_frd chat_friend none" style="height:100%;overflow-y:auto;">

                    </ul>
                    <!--全部好友-->

                    <ul class="none" style="height:100%;overflow-y:auto;">
                        <div class="myaddress">
                            <div class="manage f14 mui-text-right aui-pad-r-15 line-height-2">管理</div>
                            <div class="edit f14 mui-text-right line-height-2 none">
                                <img class="tc_back fl aui-pad-t-10" src="images/tc_back.png" alt="" width="15">
                                <span class="xinzeng">新增</span>
                            </div>
                            <ul class="dizhi f12 aui-pad-l-10 mui-text-left">
                                <li class="aui-border-b-gray aui-pad-5 flex">
                                    <div class="f1 checkbox none"><input class="aui-mar-t-15" type="checkbox"></div>
                                    <div class="edit_con aui-col-10">
                                        <div class="line-height-2">司马懿<span class="fr">15963514465</span></div>
                                        <div><span class="aui-color-red">[默认地址]</span>河南省安阳市文峰区中华路万达写字楼</div>
                                        <div class="bianji mui-text-right none"><span class="edit_btn">编辑</span> <span class="aui-color-red aui-pad-l-10">删除</span></div>
                                    </div>
                                </li>
                                <li class="aui-border-b-gray aui-pad-5 flex">
                                    <div class="f1 checkbox none"><input class="aui-mar-t-15" type="checkbox"></div>
                                    <div class="edit_con aui-col-10">
                                        <div class="line-height-2">司马懿<span class="fr">15963514465</span></div>
                                        <div><span class="aui-color-red">[默认地址]</span>河南省安阳市文峰区中华路万达写字楼</div>
                                    </div>
                                </li>
                            </ul>

                        </div>
                        <!--管理-->
                        <div class="newaddress fix mui-text-center aui-background-orange aui-color-white line-height-3 f14 aui-col-10" style="left:0;bottom:0;">新增收货地址</div>

                        <div class="newadd1 newadd mui-text-left none">
                            <div class="saveadd f14 mui-text-right aui-pad-r-15 line-height-2">保存</div>
                            <ul class="f14 aui-pad-l-10" style="height:90%;overflow-y: auto;">
                                <li class="flex line-height-3"><div >收货人</div><div class="f4"> <input class="name" type="text"></div></li>
                                <li class="flex line-height-3"><div >联系电话</div><div class="f4"><input class="tel" type="text" maxlength="11"></div></li>
                                <li class="flex line-height-3 re"><div >所在地区</div><div class="f4"><input class="useraddress" type="text"></div><span class="ab reri aui-color-gray f12">请选择></span></li>
                                <li class="flex line-height-3 re"><div >邮编</div><div class="f4"><input  div class="zip" type="text"></div> <span class="ab reri aui-color-gray f12">请选择></span></li>
                                <li class="flex line-height-3"><input type="text" placeholder="请填写详细地址"></li>
                                <li class="flex line-height-3 re">设为默认 <input class="ab reri retop" type="checkbox" checked="checked"></li>
                            </ul>
                        </div>
                        <div class="newadd2 newadd mui-text-left none">
                            <div class="queding f14 mui-text-right aui-pad-r-15 line-height-2">保存</div>
                            <ul class="f14 aui-pad-l-10" style="height:90%;overflow-y: auto;">
                                <li class="flex line-height-3"><div >收货人</div><div class="f4"> <input class="name1" type="text"></div></li>
                                <li class="flex line-height-3"><div >联系电话</div><div class="f4"><input class="tel1" type="text" maxlength="11"></div></li>
                                <li class="flex line-height-3 re"><div >所在地区</div><div class="f4"><input class="useraddress1" type="text"></div><span class="ab reri aui-color-gray f12">请选择></span></li>
                                <li class="flex line-height-3 re"><div >邮编</div><div class="f4"><input  div class="zip1" type="text"></div> <span class="ab reri aui-color-gray f12">请选择></span></li>
                                <li class="flex line-height-3"><input type="text" placeholder="请填写详细地址"></li>
                                <li class="flex line-height-3 re">设为默认 <input class="ab reri retop" type="checkbox" checked="checked"></li>
                            </ul>
                        </div>
                        <!--新增-->
                    </ul>
                    <!--收货地址-->
                </div>
            </div>
        </div>
    </div>

    <!--弹窗开始-->
    <div class="alert f14 none">
        <div class="fuli_tc box re none">
            <img class="close ab auto" style="bottom:-40px;left:0;right:0;" src="images/close_icon.png" alt="" width="40">
            <div class="tc_btn mui-text-center">福利中心</div>
            <div style="margin-top:-20px;height:230px;overflow-y: scroll;">
                <div class="aui-pad-10 aui-background-white aui-border-1 aui-mar-b-10 mui-row">
                    <div class="mui-col-sm-8 mui-col-xs-8">
                        <div>首次上传头像</div>
                        <div><img class="vmid" src="images/xing.png" alt="" width="20"><span class="f12">×10</span><img class="vmid aui-mar-l-10" src="images/zuan.png" alt="" width="20"><span class="f12">×100</span></div>
                    </div>
                    <div class="get_btn mui-col-sm-4 mui-col-xs-4"><button class="fr">领取</button></div>
                </div>
                <div class="aui-pad-10 aui-background-white aui-border-1 aui-mar-b-10 mui-row">
                    <div class="mui-col-sm-8 mui-col-xs-8">
                        <div>首次上传头像</div>
                        <div><img class="vmid" src="images/xing.png" alt="" width="20"><span class="f12">×10</span><img class="vmid aui-mar-l-10" src="images/zuan.png" alt="" width="20"><span class="f12">×100</span></div>
                    </div>
                    <div class="get_btn mui-col-sm-4 mui-col-xs-4"><button class="fr">领取</button></div>
                </div>

            </div>
        </div>
        <!--福利中心-->

        <div class="addfriend box re mui-text-center none">
            <div class="tc_btn">添加好友</div>
            <div class="mui-text-left aui-border-radius-30 aui-background-white aui-pad-10">
                <input style="width:80%;margin:0;padding:0;height:auto;text-indent:20px;border:none;font:14px/16px '';" type="text" placeholder="请输入你的好友ID" id="search_user_id">
                <img class="zs_search fr" src="image/search.png" alt="" onclick="search()">
            </div>
            <div class="search_jieguo mui-text-left aui-mar-t-15 aui-border-t aui-pad-10 id" style="display:none!important;">
                <div class="aui-pad-b-10 id1">*暂无信息</div>
                <div class="id2">
                    <img id="id2_user_logo" class="aui-pad-r-10 fl" src="image/avatar.png" alt="" width="50">
                    <div><div id="id2_user_name" class="nowrap">司马懿</div><div id="id2_id">ID:1235</div></div>
                </div>
            </div>
            <div class="flex aui-mar-t-10 f14">
                <div class="cancel gray_btn auto">取消</div>
                <div class="orange_btn auto" onclick="add_friend()">加好友</div>
            </div>
        </div>
        <!--搜索id-->

        <div class="kefu_tc box mui-text-center re none">
            <div class="tc_btn ab">客服中心</div>
            <div>人工客服请关注我们的微信公众号！</div>
            <img class="aui-col-5 aui-mar-b-10" src="image/erweima.png" alt="">
            <div class="yes orange_btn auto">确定</div>
        </div>
        <!--客服中心-->

        <div class="haoyou_info box mui-text-center line-height-2 re none" style="height:auto;">
            <img class="user_tx ab aui-border-rasius-y" src="image/avatar.png" alt="" width="80" height="80">
            <img class="ab jubao_btn" style="top:20px;right:30px;" src="images/tc_jubao.png" alt="" width="60">
            <div class="f15 aui-pad-b-5"><img class="aui-mar-r-5" src="image/sex1.png" alt="" width="14"><b>司马懿</b>ID:368</div>
            <div class="aui-col-9 auto mui-row mui-text-left f12">
                <div class="mui-col-sm-6 mui-col-xs-6"><div>段位：绿蓝带</div><div>胜率：77%</div></div>
                <div class="mui-col-sm-6 mui-col-xs-6"><div>人气：99999</div><div>运气：999</div></div>
            </div>
            <div class="aui-pad-t-10 mui-text-center hidden flex f14">
                <div class="cancel gray_btn auto">取消 </div>
                <div class="send_liwu blue_btn auto">送礼物</div>
            </div>
        </div>
        <!--好友信息-->

        <div class="gift fix aui-col-10 mui-text-center" style="left:0;bottom:-200px;">
            <div class="gift_bg aui-col-5 auto aui-pad-10">送给 <img src="image/avatar.png" alt="" width="14">小思设计2017</div>
            <div class="gift_bg f12">
                <div class="re" style="height:110px;overflow-x:auto;">
                    <div class="gift_con flex border-t-yellow ab" style="overflow-x:auto;">
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                        <div class="aui-pad-5 aui-mar-5">
                            <img src="images/gift1.png" alt="" height="50">
                            <div><img class="vmid" src="images/xing.png" alt="" width="16">100</div>
                        </div>
                    </div>

                </div>
                <div class="aui-pad-5 border-t-yellow">
                    <div class="aui-border-radius fl gift_btn">充值：<img class="vmid" src="images/xing.png" alt="" width="16">100 ></div>
                    <div class="send_btn blue_btn fr aui-color-white">赠送</div>
                    <div class="fr re aui-mar-r-10">
                        <div class="aui-border-radius gift_btn">×<span class="num">01</span> <span class="more fr"></span></div>
                        <ul class="gift_num mui-text-center ab none" style="width:140%;left:0;bottom:35px;background:#c8b617;">
                            <li class="action">100</li>
                            <li>50</li>
                            <li>30</li>
                            <li>20</li>
                            <li>10</li>
                            <li>01</li>
                        </ul>
                    </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
        </div>
        <!--送礼物-->

        <div class="jubao_con box mui-text-center re none" style="padding:30px;">
            <div class="tc_btn f14">举 报</div>
            <div class="mui-text-left f14 line-height-2" style="padding:10px 0 0 20px;">
                <div>玩家：司马懿大司马</div>
                <form action="" method="get" style="padding-left:20px;">
                    <label><input name="ju" type="radio">辱骂，人身攻击</label><br/>
                    <label><input name="ju" type="radio">广告，色情，政治</label><br/>
                    <label><input name="ju" type="radio">影响其他玩家游戏</label><br/>
                    <label><input name="ju" type="radio">恶意举报</label><br/>
                    <label><input name="ju" type="radio">其他原因</label><br/>
                </form>
            </div>
            <div class="aui-pad-t-15 flex" style="justify-content:space-around;">
                <div class="cancel gray_btn" style="width:40%;">取消</div>
                <div class="yes orange_btn" style="width:40%;">确定</div>
            </div>
        </div>
        <!--举报内容-->

        <div class="user_info box f14 mui-text-center re none">
            <img class="user_tx ab aui-border-rasius-y" src="image/avatar.png" alt="" width="80" height="80">
            <div style="overflow:hidden;">
                <div class="aui-pad-b-5"><img class="aui-mar-r-10" src="image/sex1.png" alt="" width="14"><b>司马懿</b> <span class="f12">ID:999</span></div>
                <div class="mui-row aui-pad-10 line-height-2 mui-text-left">
                    <div class="mui-col-sm-7 mui-col-xs-7">
                        <div>段位：绿蓝带</div>
                        <div>胜率：77%</div>
                    </div>
                    <div class="mui-col-sm-5 mui-col-xs-5">
                        <div>幸运：99999</div>
                        <div>人气：9999</div>
                    </div>
                </div>
                <div class="yes orange_btn auto">确定</div>
            </div>
        </div>
        <!--用户信息-->
    </div>

    <div class="send_alert fix mui-text-center aui-color-white aui-col-3 f14 line-height-3 aui-border-radius none" style="background:rgba(0,0,0,0.4);bottom:5vh;left:35vw;z-index:999;">发送成功</div>
    <!--发送好友请求-->
    <div class="get_succuess fix mui-text-center aui-color-white aui-col-3 f14 line-height-3 aui-border-radius none" style="background:rgba(0,0,0,0.4);bottom:5vh;left:35vw;z-index:999;">领取成功</div>
    <!--活动 领取成功-->
</body>
<input type="hidden" id="isTrue" value="1">
<input type="hidden" id="adduserid" value="0">
<!--<input type="hidden" id="zengsong_user_id" value="0" />-->

<script>
    $("ul.shop_nav li").click(function(){
        $(this).addClass("action").siblings().removeClass("action");
        var index=$(this).index();
        $(".shop_con ul").eq(index).show().siblings().hide();
    });

    function search(){
        $(".id").hide();
        $(".id1").hide();
        $(".id2").hide();
        var search_user_id=$("#search_user_id").val();

        if(search_user_id!=''){
            var isTrue = $("#isTrue").val();
            if(isTrue==1){
                $("#isTrue").val(0);
                var data={};
                data.search_user_id=search_user_id;
                data.user_id=user_id;
                data.userpwd=userpwd;
                $.ajax({
                    url: hostUrl+'/wap/index.php?ctl=user_center&act=search_user_id_tj',
                    type: 'POST',
                    data:data,
                    dataType: "json",
                    success: function (data) {
                        console.log(data);
                        if(data.status=="1"){
                            console.log(data.info);
                            $("#adduserid").val(data.info.id);
                            $("#id2_user_logo").attr("src",hostUrl+data.info.user_logo);
                            $("#id2_user_name").html(data.info.user_name);
                            $("#id2_id").html(data.info.id);
                            $("#zengsong_user_id").val(data.info.id);
                            $(".id2").show();
                        }else{
                            $("#adduserid").val(0);
                            $(".id1").html(data.info);
                            $("#zengsong_user_id").val(0);
                            $(".id1").show();
                        }
                        $(".id").show();
                        $("#isTrue").val(1);
                    },
                    error: function () {
                        //alert("系统错误，请联系管理员");
                    }
                });
            }
        }else{
            alert("请输入好友id");
        }
    }
    function add_friend(){
        var id=$("#adduserid").val();
        var data={};
        data.id=id;
        data.user_id=user_id;
        data.userpwd=userpwd;

        if(id>0){
            $.ajax({
                url: hostUrl+'wap/index.php?ctl=uc_msg&act=add_friend',
                type: 'POST',
                data: data,
                dataType: "html",
                success: function (data) {
                    console.log(data)
                    console.log(data.add_status)
                    if(data.add_status==1){
                        alert("添加成功，等待对方通过好友");
                    }
                    if(data.add_status==2){
                        alert("你们已经是好友啦");
                    }
                    if(data.add_status==3){
                        alert("等待对方通过好友");
                    }
                },
                error: function () {
                    alert("系统错误，请联系管理员");
                }
            });
        }else{
            alert("没有好友信息");
        }
    }
    $(".saveadd").click(function () {

        var sendData={};


        if($(".name").val()==" ")
        {
            alert("请输入收货人");
            return false;
        }
        if($(".tel").val()=="")
        {
            alert("请输入手机号");
            return false;
        }
        if($(".tel").val().length<11)
        {
            alert("手机号格式错误");
            return false;
        }
        if($(".useraddress").val()==" ")
        {
            alert("请输入地址");
            return false;
        }
        if($(".zip").val()==" ")
        {
            alert("请输入邮编");
            return false;
        }

        sendData.user_id=user_id
        sendData.userpwd=userpwd
        sendData.name=$(".name").val();
        sendData.tel=$(".tel").val();
        sendData.useraddress=$(".useraddress").val();
        sendData.zip=$(".zip").val();
        console.log(sendData)
        $.ajax({
            url:'http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_address&act=add',
            type:'POST',
            data:sendData,
            dataType: "html",
            success: function (data) {

                console.log(data)
                alert("新增成功！");
                window.location.href="chat.html"

            },
            error: function () {
                //alert("系统错误，请联系管理员");
            }
        })

    })

    function del(dizhiid,userid) {
        console.log(dizhiid,userid);
        var sendData={};
        sendData.id=dizhiid;
        sendData.user_id=userid;
        sendData.userpwd=userpwd;
        $.ajax({
            type:"POST",
            data:sendData,
            url:"http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_address&act=del",
            dataType:"json",
            success:function (data) {
                console.log(data);
                alert("删除成功！");

                location.reload()

            },
            error:function (data) {
                console.log(data)

            }
        })
    }
    function bianji(dizhiid) {
        localStorage.setItem("id",dizhiid );

        //window.location.href="uc_address_bianji.html"

        var sendData={};
        sendData.id=dizhiid;
        sendData.flage=0;
        sendData.user_id=user_id;
        sendData.userpwd=userpwd;
        console.log(sendData);
        $.ajax({
            type:'POST',
            data:sendData,
            url:'http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_address&act=setAdd',
            dataType:'json',
            success:function (data) {
                console.log(data);

                page_data=data;
                $(".mui-title").html(page_data.page_title)
                $(".name1").val(page_data.list[0].consignee)
                $(".tel1").val(page_data.list[0].mobile)
                $(".useraddress1").val(page_data.list[0].address)
                $(".zip1").val(page_data.list[0].zip)
//                   var html=''
//                   $(".mui-content").html(html);
//                   InitChat();
            },
            error:function () {

            }
        })
    }

    $(".queding").live('click',function () {
        id=localStorage.getItem("id");
        var   sendData={};
        sendData.flage=1;
        sendData.user_id=user_id;
        sendData.userpwd=userpwd;
        sendData.id=id;
        //alert(sendData.id);
        sendData.name=$(".name1").val();
        sendData.tel=$(".tel1").val();
        sendData.useraddress=$(".useraddress1").val();
        sendData.zip=$(".zip1").val();
        console.log(sendData)
        $.ajax({
            url:"http://xjh.taoleyizhan.com/wap/index.php?ctl=uc_address&act=setAdd",
            data:sendData,
            type:"POST",
            dataType:"json",
            success:function (json) {
                console.log(json)
                alert("修改成功！");
                window.location.href="chat.html"
            }
        })
    })


</script>
<script src="js/jiebao.js"></script>
<script src="js/alert.js"></script>
<script src="js/backpack.js"></script>
<script src="js/index.js"></script>
</html>